import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import refresh from '@dfeidao/atom-web/url/refresh';
import get from '@dfeidao/atom-web/local/get';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// 确认删除
	const nos = get(fd, 'nos') as string[];
	console.log(nos);
	const r = await nodejs<{ code: 0 | 1; result: string }>('processing-set/zj-000004/s001', {
		filter: {
			sub_process_no: nos
		}
	});
	if (r.code === 1) {
		alert('删除成功');
		refresh();
	} else {
		alert('删除失败');
	}
}
